import request from '@/utils/request.js'
const query = {
  pageNum: 1,
  pageSize: 20,
  tag: null,
  data: null,
  description: null,
}
// 查询边界数据
export function listBoundaryData(query) {
  return request({
    url: '/boundary/boundary/list',
    method: 'get',
    params: query,
  })
}
// 查询地图列表
export function listMapData(query) {
  return request({
    url: '/MapData/MapData/list',
    method: 'get',
    params: query,
  })
}
// 查询数据页列表
export function listBrandData(positionId) {
  return request({
    url: '/brand/data/list',
    method: 'get',
    params: {
      ...query,
      positionId,
    },
  })
}

// 查询数据页列表
export function listCultureData(positionId) {
  return request({
    url: '/culture/data/list',
    method: 'get',
    params: {
      ...query,
      positionId,
    },
  })
}

// 查询数据页列表
export function listFlowData(positionId) {
  return request({
    url: '/flow/data/list',
    method: 'get',
    params: {
      ...query,
      positionId,
    },
  })
}

// 查询数据页列表
export function listHomeData(positionId) {
  return request({
    url: '/home/data/list',
    method: 'get',
    params: {
      ...query,
      positionId,
    },
  })
}

// 查询数据页列表
export function listPlantData(positionId) {
  return request({
    url: '/plant/data/list',
    method: 'get',
    params: {
      ...query,
      positionId,
    },
  })
}

// 查询数据页列表
export function listProcessData(positionId) {
  return request({
    url: '/process/data/list',
    method: 'get',
    params: {
      ...query,
      positionId,
    },
  })
}

// 查询数据页列表
export function listServiceData(positionId) {
  return request({
    url: '/service/data/list',
    method: 'get',
    params: {
      ...query,
      positionId,
    },
  })
}
